
#ifndef __FAT_FILE_OPT__
#define __FAT_FILE_OPT__

#include "stdint.h"

#define FIL_OPEN_R      1  //??,??????? 
#define FIL_OPEN_W      2  //??,????? 
#define FIL_OPEN_WA     4  //??,???? 

#define FIL_OPT_OK      0
#define FIL_OPT_ERR     1

uint8_t fat_fil_open(void * obj, char * path, uint32_t mode);
uint8_t fat_fil_close(void * obj);
uint32_t fat_fil_size(void * obj);
uint8_t fat_fil_read(void * obj, void *buff, uint32_t len, uint32_t *len_back);
uint8_t fat_fil_seek(void * obj, uint32_t site);
uint8_t fat_fil_write(void * obj, void *buff, uint32_t len, uint32_t *len_back);



#endif  // __FAT_FILE_OPT__
